package mylibrary.generic;

import java.util.ArrayList;
import java.util.List;

public class Point<M> {		//usually use T

	private M var;
	public M getVar() {
		return var;
	}
	public void setVar(M var) {
		this.var = var;
	}
	
	
	public static void main(String[] args) {
		
		Point<String> p = new Point<String>();
		p.setVar("11");
		System.out.println(p.getVar());
	}
	
	public void fun(Point<?> temp) {
		
		List<Number> l = new ArrayList<Number>();
		l.add(new Integer(1));
		
		
		
	}
}
